package com.kim.stream.rabbitmq.controller;

import com.kim.stream.rabbitmq.service.MessageService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author KimWu
 * @date 2020/6/3 21:04
 * @Description ：
 */
@RestController
@RequestMapping("/streamMq")
public class SendMessageController {

    @Resource
    private MessageService messageService;

    @GetMapping("send")
    public String sendMessage(){
        return messageService.send();
    }
}
